package com.hzit.manager.controller;

import com.hzit.common.annota.RequiresPermissions;
import com.hzit.common.util.R;
import com.hzit.manager.service.IBrandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author wf
 * @since 2024-01-25
 */
@RestController
@RequestMapping("/brand")
public class BrandController {
	@Autowired
	private IBrandService brandService;

	@GetMapping("/list")
	@RequiresPermissions("user:userlist123")
	public R findAll(){
		return R.ok(brandService.list());
	}
}
